import Layout from '@/page/index/'

export default [
  {
    path: '/offerShareAccountAdd',
    name: '订单分享添加界面',
    component: () =>
      import( /* webpackChunkName: "page" */ '@/views/business/components/offerShareAccountAdd'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path:'/account/fbAccount',
    name:'facebook',
    component:()=>
      import('@/views/business/accountAdd'),
    meta:{
      isAuth: false,
      isTab: false
    }
  },
  {
    path: '/offerShareUserAdd',
    name: '订单分享添加界面',
    component: () =>
      import( /* webpackChunkName: "page" */ '@/views/business/components/offerShareUserAdd'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/login',
    name: '登陆页',
    component: () =>
      import( /* webpackChunkName: "page" */ '@/page/login/index'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/lock',
    name: '锁屏页',
    component: () =>
      import( /* webpackChunkName: "page" */ '@/page/lock/index'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  //注册页面
  {
    path: '/register',
    name: 'register',
    component: () =>
      import('@/page/register/index'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  //激活页面
  {
    path: '/activation',
    name: 'activation',
    component: () => import('@/page/activation/index'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/',
    name: '主页',
    redirect: '/wel/index'
  },
  {
    path: '/myiframe',
    component: Layout,
    redirect: '/myiframe',
    children: [{
      path: ":routerPath",
      name: 'iframe',
      component: () =>
        import( /* webpackChunkName: "page" */ '@/components/iframe/main'),
      props: true
    }]

  },
  {
    path: '/examine',
    name: 'examine',
    component: () => import(/* webpackChunkName: "page" */ '@/page/examine/main'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/wel/index',
    name: 'wel',
    component: () => import(/* webpackChunkName: "page" */ '@/views/wel/indexw'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/inspect',
    name: 'inspect',
    component: () => import(/* webpackChunkName: "page" */ '@/page/examine/createauditpage'),
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/403',
    component: () =>
      import( /* webpackChunkName: "page" */ '@/components/error-page/403'),
    name: '403',
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/500',
    component: () =>
      import( /* webpackChunkName: "page" */ '@/components/error-page/500'),
    name: '500',
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/404',
    component: () =>
      import( /* webpackChunkName: "page" */ '@/components/error-page/404'),
    name: '404',
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '*',
    redirect: '/404'
  },
]
